import request from '@/request/request.js';
// import upload from '@/upload/upload.js';

// 需要token信息得接口

/**
 * @function 更新用户信息--头像/昵称等
 */
export function updateUserInfo(data) {
	return request({
		url: '/xcxUser/updateUserInfo',
		headers: {
			isToken: true
		},
		method: 'post',
		data: data
	})
}


/**
 * @function ocr识别照片文件图文信息--身份证
 */
export function realAuthUser(params) {
	return request({
		url: '/xcxUser/realAuthUser',
		headers: {
			isToken: true
		},
		method: 'get',
		params: params
	})
}



/**
 * @function 提交身份证信息进行人身核验--身份证是否错误
 */
export function verificationAuthUser(data) {
	return request({
		url: '/xcxUser/verificationAuthUser',
		headers: {
			isToken: true
		},
		method: 'post',
		data: data
	})
}


/**
 * @function 提交意见反馈
 */
export function submitFeedBack(data) {
	return request({
		url: '/xcxUser/submitFeedBack',
		headers: {
			isToken: true
		},
		method: 'post',
		data: data
	})
}


/**
 * @function 获取我的消息通知--分页
 */
export function getMyNoties(params) {
	return request({
		url: '/xcxUser/getMyNoties',
		headers: {
			isToken: true
		},
		method: 'get',
		params: params
	})
}
/**
 * @function 获取我的消息通知详情
 */
export function getMyNotieInfo(params) {
	return request({
		url: '/xcxUser/getMyNotieInfo',
		headers: {
			isToken: true
		},
		method: 'get',
		params: params
	})
}


/**
 * @function 获取我的到访记录--分页
 */
export function getMyVisits(params) {
	return request({
		url: '/xcxUser/getMyVisits',
		headers: {
			isToken: true
		},
		method: 'get',
		params: params
	})
}

/**
 * @function 保存我的到访记录
 */
export function saveMyVisits(data) {
	return request({
		url: '/xcxUser/saveMyVisits',
		headers: {
			isToken: true
		},
		method: 'post',
		data: data
	})
}

/**
 * @function 获取我的使用足迹--分页
 */
export function getMyUseFoots(params) {
	return request({
		url: '/xcxUser/getMyUseFoots',
		headers: {
			isToken: true
		},
		method: 'get',
		params: params
	})
}

/**
 * @function 保存我的使用足迹
 */
export function saveMyUseFoots(data) {
	return request({
		url: '/xcxUser/saveMyUseFoots',
		headers: {
			isToken: true
		},
		method: 'post',
		data: data
	})
}

/**
 * @function 获取政策列表--分页
 */
export function getPolicyList(params) {
	return request({
		url: '/xcxUser/getPolicyList',
		headers: {
			isToken: true
		},
		method: 'get',
		params: params
	})
}



/**
 * @function 获取我的申请列表
 */
export function getMyApplyList(params) {
	return request({
		url: '/xcxUser/getMyApplyList',
		headers: {
			isToken: true,
		},
		method: 'get',
		params: params
	})
}


/**
 * @function 获取我的申请详情
 */
export function getApplyInfo(data) {
	return request({
		url: '/xcxUser/getApplyInfo',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}

/**
 * @function 保存到访记录评价
 */
export function subMyVisits(data) {
	return request({
		url: '/xcxUser/subMyVisits',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}
/**
 * @function 消息已读
 */
export function readMsg(data) {
	return request({
		url: '/xcxUser/readMsg',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}

/**
 * @function 收藏政策
 */
export function collectionPolicy(data) {
	return request({
		url: '/xcxUser/collectionPolicy',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}

/**
 * @function 取消收藏政策
 */
export function delMyPolicy(data) {
	return request({
		url: '/xcxUser/delMyPolicy',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}

/**
 * @function 保存到访记录
 */
export function saveDfjl(data) {
	return request({
		url: '/xcxUser/saveDfjl',
		headers: {
			isToken: true,
		},
		method: 'post',
		data: data
	})
}

